package com.qf.operators;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.qf.loanapplication.Loanapplication;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.util.Date;

/**
 * @author H
 * @create 2020-11-03 15:04
 * @strive To be whoever you want to be.
 * @Description: 操作员表 operators
 * <p>
 * id，用户名，密码，姓名
 * <p>
 * id,username,password,name
 */
@Entity
@Data
@Table(name = "operators")
public class Operators {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Integer id;

    private String username;

    private String password;

    private String name;

    private String address;

/*基础额度*/
    @Column(name = "base_limit")
    private Double baseLimit;
    /*申请人表*/
    @Transient
    private Loanapplication loanapplication;
    //申请人
    /*@Transient
    @Column(name = "borrower_id")
    private Integer borrowerId;
    //用途
    @Transient
    @Column(name = "loan_purpose")
    private String loanPurpose;
    //金额
    @Transient
    @Column(name = "loan_amount")
    private Double loanAmount;
    //分期，状态
    @Transient
    @Column(name = "loan_duration")
    private String loanDuration;
    @Transient
    private String status;*/

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getBaseLimit() {
        return baseLimit;
    }

    public void setBaseLimit(Double baseLimit) {
        this.baseLimit = baseLimit;
    }

    public Loanapplication getLoanapplication() {
        return loanapplication;
    }

    public void setLoanapplication(Loanapplication loanapplication) {
        this.loanapplication = loanapplication;
    }
}
